package com.tyylab.message.distribute.extapi;

import com.tyylab.message.distribute.model.MessageChannelConfig;
import com.tyylab.message.distribute.model.MessageDistribute;
import io.swagger.annotations.Api;

import java.sql.Timestamp;
import java.util.List;

@Api("外部配置提供接口")
public interface IConfigProvider {
    boolean needUpdate(Timestamp lastRead);

    boolean needUpdateChannelConfig(Timestamp lastReadChannelConfig);

    List<MessageDistribute> selectAll();

    List<MessageChannelConfig> selectAllMessageChannelConfig();
}
